<template>
<div>
  <p>用户名:<input type="text" v-model="form.username"></p>
  <p>密码:<input type="text" v-model="form.password"></p>
  <button @click="add">注册</button>
</div>
</template>

<script>
export default {
  name: "School_reg",
  data(){
    return{
      form:{}
    }
  },
  methods:{
    add(){
      this.$axios.post('users/regxd/',this.form)
      .then(res=>{
        this.$router.push('/School_login')
      })
    },
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
